<template>
<transition  name='slideIn'>
  <div class="subscribe" @touchmove.prevent v-if='isShow'  @click='isShow=false'>
      <div class="content" @click.stop>
      <h4 class='total PLR15 PTB15 bold redTex'>全部</h4>
      <div class="PLR15 left PB15">
        <span class="item select">HR</span>
        <span class="item select">Meeting Efficiency</span>
        <span class="item select">Meeting Efficiency</span>
        <span class="item select">Meeting Efficiency</span>
        <span class="item select">Meeting Efficiency</span>
        <span class="item select">Meeting Efficiency</span>
        <span class="item select">Meeting Efficiency</span>
      </div>
      <div class='btnWrap'>
        <span class="btn">确认</span>
        <!-- <span class="btn">编辑订阅</span> -->
        <router-link tag='span' class="btn" :to='{name:"mySubscribe"}'>编辑订阅</router-link>
      </div>
      </div>
    </div>
</transition>

</template>
<script>
  export default {
    data() {
      return {
        isShow: false
      }
    },
    methods: {
      a() {
        alert(3)
      },
      open() {
        this.isShow = true
      }
    }
  }
</script>
<style lang='less'>
.slideIn-enter-active,.slideIn-leave-active{
  transform: translateY(0%);
  transition: all .5s
}
.slideIn-enter,.slideIn-leave-to{
  transform: translateY(-100%);
}
.subscribe {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 45px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  .content {
    background: #fff;
  }
  .total {
    text-align: left;
  }
  .item {
    padding: 2px 15px;
    background: #f5f5f5;
    border-radius: 12px;
    position: relative;
    margin: 8px;
    &.select:after {
      content: '√';
      display: inline-block;
      position: absolute;
      width: 16px;
      height: 16px;
      background: #c11613;
      top: -5px;
      border-radius: 50%;
      color: #fff;
      line-height: 17px;
      font-size: 12px;
      text-align: center;
    }
  }
  .btnWrap {
    border-top: 1px solid #ccc;
    padding: 20px 0;
    .btn {
      padding: 5px 10px;
      background: #c11613;
      color: #fff;
      border-radius: 20px;
      margin: 0 10px;
      width: 120px;
      border: 1px solid #c11613;
    }
    .btn:nth-child(2) {
      background: #fff;
      color: #c11613;
      border: 1px solid #c11613;
      box-sizing: border-box;
    }
  }
}
</style>
